import axios from 'axios'

const port ='http://localhost:5175/api'

export const getAll = async (params)=>{
    // console.log(params);    
    const query = new URLSearchParams(params).toString();
    const response= await axios.get(`${port}/user?${query}`);
    return response.data;
}

export const delItem = async (id)=>{
    console.log('1212');
    
    let data = await axios.delete(`${port}/user/${id}`)
    console.log(data,'111');
    return data.data
}